package com.CampusLife.service;

import com.CampusLife.bean.LostProduct;
import com.CampusLife.bean.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IProductService {
    List<Product> queryAll();

    Product queryById(Integer pid);

    void add(Product product);

    void update(Product product);

    void delete(Integer pid);
    Product getProduct (Product pid);
    List<Product>  getProductAllShen();
    List<Product>   getProductAll();
    List<Product> getProductByname(Product pid);
    List<Product> getProductByType(int t_id);
    List<Product> getProductAllByName(Product product);
    List<Product> getProductByType0(int t_id);

    List<Product> getProductAllByName0(Product product);

    List<Product> getOrder();

    List<Product> getProductByBook();

    void updateStatus(int pid);

    Product  getProductById(int pid);

    List<Product>  getProductByPhone();

    List<Product> getProductByComputer();

    List<Product>getProductByVehicle();

    List<Product>     getProductByEquipment ();

    List<Product> getProductByElectric();


    List<Product> getProductByLife ();

    List<Product>    queryByName(@Param("p_name") String p_name);

    List<Product>  getProductByUserId(Integer id);


}
